<?php
namespace App\Services\WechatHandler;

use \EasyWeChat\Kernel\Contracts\EventHandlerInterface;

/**
 * 链接消息处理器
 * @package App\WechatHandler
 */
class LinkMessageHandler implements EventHandlerInterface
{
    /**
     * 消息处理
     * @param null $payload
     */
    public function handle($payload = null)
    {
        //消息异步保存到记录表
        \App\Jobs\WxmsgLinkHandle::dispatch($payload)->onQueue('low');
        return new \EasyWeChat\Kernel\Messages\Text('收到链接消息');
    }
}